package cfengMiddleware.server.controller;

import CfengMiddleWare.model.entity.TestUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Cfeng
 * @date 2022/9/11
 */

@RestController
@Slf4j
@RequestMapping("/user")
public class UserController {

    @GetMapping("/getUser")
    public ResponseEntity<TestUser> getUser() {
        TestUser user = new TestUser();
        user.setUserName("里斯");
        user.setUserNo(1);
        return ResponseEntity.ok(user);
    }
}
